@import com.mgfireworks.mgplatform.mgadmin.product.model.Category
@extends("/form_template")
@args Boolean isEdit
@args Category category
@{
	if(category==null){
		category=new Category();
	}
}
<div class="row form-horizontal form-label-left">
   <div class="col-md-12 col-sm-12 col-xs-12">
     <div class="x_panel">
       <div class="x_title">
         <h2>@if(isEdit){修改}else{添加}产品类别</h2>
         <div class="clearfix"></div>
       </div>
       <div class="x_content">
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="parentId">所属类别
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	         	<input type="hidden" name="parentId" value="@category.getParentId()"/>
	         	<input type="text" value="@category.getParentName()" readonly="readonly" class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
	       <div class="form-group">
	         <label class="control-label col-md-3 col-sm-3 col-xs-12" for="catName">类别名称<span class="required">*</span>
	         </label>
	         <div class="col-md-6 col-sm-6 col-xs-12">
	         	<input type="hidden" name="catId" value="@category.getCatId()"/>
	           	<input type="text" id="catName" name="catName" value="@category.getCatName()" placeholder="请输入类别名称" required="required" class="form-control col-md-7 col-xs-12">
	         </div>
	       </div>
       </div>
     </div>
   </div>
</div>